import type { TableDataInfo } from '@/types/global'
import type { GoodsShelvesVo } from '@/types/goodsShelves'
import type { GoodsShelves } from '@/types/home'
import { http } from '@/utils/http'

/**
 * 根据设备号查询该设备上的货架信息
 * @param data
 * @returns
 */
export const getVmVolistAPI = (data: GoodsShelves) => {
  return http<TableDataInfo<GoodsShelvesVo>>({
    url: `/vm/voList`,
    method: 'GET',
    data,
  })
}

/**
 * 获取给用户-在该货架上-待取货的物品列表
 * @param data
 * @returns
 */
export const getListPickuptAPI = (data: GoodsShelves, type: number) => {
  return http<TableDataInfo<GoodsShelvesVo>>({
    url: `/vm/list/${type}`,
    method: 'GET',
    data,
  })
}
